Fix Total Org Summary hours to match Leaderboard - #2335
Open
akv-iu wants to merge 3 commits into
Open
Conversation
|
akv-iu
marked this pull request as ready for review
September 6, 2026 02:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Priority High follow-up to PR #2066.
The Total Hours Worked value in Reports → Total Org Summary did not match the Total Time shown on the Dashboard Leaderboard for the same current-week date range. PR #2066 aligned the report with the Dashboard organization-summary aggregation rather than the Leaderboard aggregation, so the mismatch remained.
The calculations used different inclusion rules:
person,team, andprojectentry types that the Leaderboard includes.This change aligns Total Org Summary with the Leaderboard while preserving the report's selected date range.
Fixes the Priority High follow-up defect reported against #2066.
Related PRS (if any):
developmentfrontend branch or the deployed frontend against this backend branch.Main changes explained:
src/helpers/overviewReportHelper.jssogetTotalHoursWorkedincludes every active user, matching the Leaderboard.isActiveisfalse, matching the Leaderboard query.How to test:
agent/pr2066-total-hours-followupin HGNRest.npm install, then run the backend withnpm start.developmentbranch and clear site data/cache.npx jest src/helpers/overviewReportHelper.spec.js --runInBand --forceExitand verify all tests pass.Screenshots or videos of changes:
Not applicable. This is a backend aggregation fix with no UI changes.
Note:
totalHoursWorked.currentremains the reported value.